package org.yihang.common.spring;

import java.util.HashMap;
import java.util.Map;

public class JsonModel {
	
	private Map<String,Object> map = new HashMap<>();
	
	public JsonModel() {
		this.map.put("success", true);
	}
	
	public JsonModel add(String key, Object value) {
		this.map.put(key, value);
		return this;
	}
	
	public Map<String,Object> asMap() {
		return this.map;
	}

}
